package com.flyee.events
{
	import flash.display.Sprite;
	import flash.events.Event;

	public class SelectionEvent extends Event
	{
		public static const SELECTED:String = "selected";
		public static const PICKUP_LOSTRES:String = "pickup";
		public static const DESTROY_LOSTRES:String = "destroy";
		public static const DRAG_PROP:String = "dragProp";
		public static const STOPMOVE_PROP:String = "stopmove";
		public static const BUY_PROP:String = "buyProp";
		public static const SPLIT_PROP:String = "splitProp";
		private var _key:String = null;
		private var _value:String = null;
		private var _entity:Sprite = null;
		public function SelectionEvent(type:String,key:String = null,value:String = null,sp:Sprite = null)
		{
			super(type, false, false);
			_key = key;
			_value = value;
			_entity = sp;
		}
		
		public function get key():String{
			return _key;
		}
		
		public function get value():String{
			return _value;
		}
		
		public function get entity():Sprite{
			return _entity;
		}
		
	}
}